﻿using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using eSYSU.Business;

public partial class M_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            NewsListInit();
        }
        l_Time.Text = String.Format(" [{0:MM-dd HH:mm}]", DateTime.Now.ToLocalTime());
    }

    protected void NewsListInit ()
    {
        Repeater_Nav.DataSource = CollegeService.GetColleges(0);
        Repeater_Nav.DataBind();
        Repeater_LatestNews.DataSource = NewsService.GetLatestComplexNews(8);
        Repeater_LatestNews.DataBind();
        Repeater_HotNews.DataSource = NewsService.GetLatestHotNewsBrief(8);
        Repeater_HotNews.DataBind();
    }
}